package com.powernode.feign.sentinel;

import com.powernode.domain.MemberAddr;
import com.powernode.feign.OrderMemberFeign;
import com.powernode.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class OrderMemberFeignSentinel implements OrderMemberFeign {
    @Override
    public Result<MemberAddr> getMemberAddrById(Long addrId) {
        log.error("远程接口调用失败，根据收货地址id查询收货地址信息，接口调用失败");
//        throw new BusinessException("远程接口调用失败，根据收货地址id查询收货地址信息，接口调用失");
        return null;
    }

    @Override
    public Result<String> getNickNameByOpenId(String openId) {
        log.error("远程接口调用失败，根据会员id查询会员昵称，接口调用失败");
        return null;
    }
}
